package com.rundatop.wx.dto;

public class Page {

    private Integer page;

    private Integer rows;

    public Page() {
    }

    public Page(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }

    public Integer getPage() {
        return (page == null || page.equals(0)) ? 1 : page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return (rows == null || rows.equals(0)) ? 10 : rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

}
